package com.bicon.botu.medical.api

import com.bicon.botu.core.base.common.entity.BaseResult
import io.swagger.annotations.ApiImplicitParam
import io.swagger.annotations.ApiOperation
import org.omg.CORBA.Object
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

/**
 * @version 1.0.0
 * @author: gdd
 * @date 2018/7/19
 * @description 健康头条控制类
 **/
@RestController
@RequestMapping("/api/healthheadline")
open class HealthHeadlineApi {
    /**
     *
     *
     * @param userId 用户id
     * @return
     */
    @ApiOperation(value = "健康头条初始化分类", notes = "健康头条初始化分类")
    @ApiImplicitParam(name = "userId", value = "用户id", required = true, dataType = "String", paramType = "query")
    @RequestMapping(value = "/initArticleClassify", method = arrayOf(RequestMethod.GET))
    fun initArticleClassify(@RequestParam userId: String){

    }
    /**
     *
     *
     * @param userId 用户id
     * @return
     */
    @ApiOperation(value = "健康头条用户分类", notes = "健康头条用户分类")
    @ApiImplicitParam(name = "userId", value = "用户id", required = true, dataType = "String", paramType = "query")
    @RequestMapping(value = "/findUserArticleClassify", method = arrayOf(RequestMethod.GET))
    fun findUserArticleClassify(@RequestParam userId: String){

    }
    /**
     *
     *
     * @param classifyId 分类id
     * @return
     */
    @ApiOperation(value = "健康头条分类下的文章列表", notes = "健康头条分类下的文章列表")
    @ApiImplicitParam(name = "classifyId", value = "分类id", required = true, dataType = "String", paramType = "query")
    @RequestMapping(value = "/findUserArticleList", method = arrayOf(RequestMethod.GET))
    fun findUserArticleList(@RequestParam userId: String){

    }

    /**
     *
     *
     * @param articleId 文章id
     * @return
     */
    @ApiOperation(value = "健康头条文章详情", notes = "健康头条文章详情")
    @ApiImplicitParam(name = "articleId", value = "文章id", required = true, dataType = "String", paramType = "query")
    @RequestMapping(value = "/ArticleDetails", method = arrayOf(RequestMethod.GET))
    fun ArticleDetails(@RequestParam userId: String){

    }

}